<?php !defined('INC') && exit('Load failure!'); ?>
{?
$userid=$u->info['userid'];
$name=$title='编辑个人资料';
if(!$u->info['islogin']) kc_tip('<p>请先登录!</p>');
$info=$db->getRows_one('%s_user','*','userid='.$u->id);
if(empty($info)) kc_tip('<p>记录为空!</p>');
?}
{#include file='include/top.php'}

<div class="w_960">
	{#include file="block/left.php"}
	
	<div class="w_700 fr mb10">

	<div class="nav mb10">
	<strong>当前位置</strong> | <a title="首页" href="{DIR}">首页</a>  |  <a href="{DIR}?user-info" title="会员中心">会员中心</a>  |  <a href="{DIR}?user-edit" title="{$name}">{$name}</a>
	</div>

	<div class="t_1"><div><h3>{$name}</h3></div></div>
	<div class="f_1 pa10 user_box">
			<div class="user_form">
				<form action="" id="form_publish">
					<ul>
						<li><h3>联系人:</h3><input type="text" name="name" class="text" maxlength="20" value="{$info[name]}"/></li>
						<li><h3>联系电话:</h3><input type="text" name="tel" class="text" maxlength="15" value="{$info[tel]}"/></li>
						<li><h3>QQ号:</h3><input type="text" name="qq" class="text" maxlength="12" value="{$info[qq]}"/><em>平常说的网号</em></li>
						<li><h3>E-mail:</h3><input type="text" name="email" class="text" maxlength="50" value="{$info[email]}"/><em>图片方式输出，放心填写</em></li>
						<li><h3>&nbsp;</h3><input type="submit" value="保存" accesskey="s" class="Submit" onclick="return form_submit()"/></li>
					</ul>
				</form>				
			</div>
	</div>
	
	</div>
	
</div>

<script>
	/* 提交表单 */
	function form_submit() {
		$('.Submit').attr('disabled','true');
		$.kc_ajax({URL:'{DIR}user/manage.php',CMD:'useredit',FORM:'form_publish',METHOD:'POST',nl:1});
		return false;
	}       
</script>

{#include file='include/bottom.php'}

</body>
</html>